//
//  OSSManager.h
//  JXNetwork
//

#import <Foundation/Foundation.h>
#import "OSSClient.h"

NS_ASSUME_NONNULL_BEGIN

@interface OSSManager : NSObject
@property (nonatomic, strong) OSSClient *imageClient;
@property (nonatomic, strong) NSString  *bucketName;
@property (nonatomic, strong) NSString  *bucketNameVoice;
@property (nonatomic, strong) NSString  *UrlVoicePrefix;
@property (nonatomic, assign) int        uploadChance;
@property (nonatomic, strong) NSMutableArray <id>*updateFiles;
@property (nonatomic, strong) NSMutableArray <id>*downFiles;

+ (instancetype)sharedManager;
- (void)getOSSServer:(void (^)(BOOL isSuccess))callBack;

/**
 * today
 * uploadCount
 */
+ (NSDictionary *)currentUploadConfig;
+ (void)autoSaveUploadCount:(int)uploadCount;

/**
 * today
 * publishCount
 */
+ (NSDictionary *)currentPublishConfig;
+ (void)autoSavePublishCount:(int)publishCount;

/**
 * today
 * downCount
 */
+ (NSDictionary *)currentDownConfig;
+ (void)autoSaveDownCount:(int)downCount;

@end

NS_ASSUME_NONNULL_END
